import request from '@/utils/request'
import { bb } from '@/utils/request';

//const bb = 'http://127.0.0.1:8080';
//const bb = 'http://182.92.190.174:8081';
//遍历游戏
export function getList(current,limit,teacherQuery){
  return request({
    baseURL: bb,
    url: `/order/selectOrder/${current}/${limit}`,
    method: 'post',
    data:teacherQuery
  })
}

export function addOrder(gameName){
  return request({
    baseURL: bb,
    url: `/order/addOrder/${gameName}`,
    method: 'post',
  })
}

export function updateOrder(order){
  return request({
    baseURL: bb,
    url: `/order/updateOrder`,
    method: 'put',
    data:order
  })
}

export function deleteOrder(orderIs){
  return request({
    baseURL: bb,
    url: `/order/deleteOrder/${orderIs}`,
    method: 'delete',
  })
}

export function deleteOrderAll(all){
  return request({
    baseURL: bb,
    url: `/order/deleteOrderAll`,
    method: 'delete',
    data:all
  })
}
